Fill Generic Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Replaces each item in a array with a given value.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public static void Fill<T>(
	T[] array,
	T value
)
Visual Basic (Declaration)
Public Shared Sub Fill(Of T) ( _
	array As T(), _
	value As T _
)
Visual C++
public:
generic<typename T>
static void Fill (
	array<T>^ array, 
	T value
)

Parameters

array
array<T>[]()
The array to modify.
value
T
The value to fill with.

Type Parameters

T

Exceptions

ExceptionCondition
System..::ArgumentNullExceptionarray is null.

See Also